public class Example12 {
    public static void main(String[] args){
        int num=0;
        int i=1;
        while(i<=100){
            num += i;
            i++;
        }
            System.out.println(num);
    }
}
